package edu.zut.hb.ambition.upplier.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.UpplierMapper;
import com.ruoyi.system.domain.Upplier;
import com.ruoyi.system.service.IUpplierService;


@Service
public class UpplierServiceImpl implements IUpplierService
{
    @Autowired
    private UpplierMapper upplierMapper;

    @Override
    public Upplier selectUpplierBySupplierid(Long supplierid)
    {
        return upplierMapper.selectUpplierBySupplierid(supplierid);
    }


    @Override
    public List<Upplier> selectUpplierList(Upplier upplier)
    {
        return upplierMapper.selectUpplierList(upplier);
    }


    @Override
    public int insertUpplier(Upplier upplier)
    {
        return upplierMapper.insertUpplier(upplier);
    }

    @Override
    public int updateUpplier(Upplier upplier)
    {
        return upplierMapper.updateUpplier(upplier);
    }

    @Override
    public int deleteUpplierBySupplierids(Long[] supplierids)
    {
        return upplierMapper.deleteUpplierBySupplierids(supplierids);
    }

    @Override
    public int deleteUpplierBySupplierid(Long supplierid)
    {
        return upplierMapper.deleteUpplierBySupplierid(supplierid);
    }
}
